package com.zy.design.pattern.proxy.rpc.server;

import com.zy.design.pattern.proxy.rpc.IQuery;

/**
 * @author zhaoyi
 * @date 2021/4/8 16:35
 * 远程服务实现
 */
public class RPCQuery implements IQuery {
    @Override
    public String getNameById(Integer id) {
        return "~~~~我是远程服务实现" + id;
    }

    @Override
    public void sayHello() {
        System.out.println("!!!hello我是服务器!");
    }
}
